#pragma once
#include "XMLparser\pugixml.hpp"
#include "MAP_OBJECT.h"

class MapSource2
{
public:
	MapSource2(void);
	~MapSource2(void);
public: 	
	int ReadData(map_obj* map_objects, cell_obj* cells, char* fname);
	int WriteData(map_obj* map_objects, cell_obj* cells, char* fname);
	string mcntpack(contour_t);
	contour_t mcntunpack(const pugi::char_t* indata);
	void cellunpack(CELL_DATA* tmpcell, const pugi::char_t* indata);

	void Start();
};

